package com.diko.starservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Emma Li
 * @date 2020/10/27 - 16:14
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.diko"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableScheduling //定时任务开启
@MapperScan("com.diko.starservice.mapper")
public class StarApplication {
    public static void main(String[] args) {
        SpringApplication.run(StarApplication.class,args);
    }
}
